<template>
    <var-dialog
        title="是否已经完成支付？"
        v-model:show="dialogStore.isOrderStatusDialogVisible"
        @before-close="onBeforeClose"
        cancel-button-text="关闭"
        cancel-button-text-color="#666"
        confirm-button-text="我已支付"
    />
</template>
<script setup>
import { useContent } from ".";
const { dialogStore, onPaid, onClose } = useContent();

const onBeforeClose = (action, done) => {
    if (action == "confirm") {
        onPaid();
        done();
    } else {
        onClose();
    }
};
</script>
<style lang="scss"></style>
